<?php
header("content-type:text/html;charset=utf-8");

require_once './WeChat.class.php';

$weChat=new WeChat('wxfe7927ebbe6ef42a','71e8bdc64676dabf34cbe3c1b2e74413');
//echo $weChat->checkSignature("sunwu123");//服务器配置

$weChat->doResponse();

//$weChat->getQR(3,1234);
//echo $weChat->getTicket(0,1234);
//echo $weChat->getAccessToken();
//$weChat->addMedia();
//echo $weChat->uploadTempMedia('./3.jpg');
//echo $weChat->uploadTempMedia('./m.mp3');
//$weChat->clearQuota('wxfe7927ebbe6ef42a');
////echo '';
//
//$menu=include 'menu.php';
//echo "创建菜单:";
//var_dump($weChat->createMenu($menu));
//echo "<h1>新菜单</h1><pre>";
//var_dump($weChat->getMenu());
//
//$res=$weChat->getMenu();
//var_dump($res);
//$res=$weChat->delMenu();
//var_dump($res);